Skip to content

chore(code): bump diffs package version#2648

Open
adboio wants to merge 1 commit into
mainfrom
06-12-chore_code_bump_diffs_package_version
Open

chore(code): bump diffs package version#2648
adboio wants to merge 1 commit into
mainfrom
06-12-chore_code_bump_diffs_package_version

Conversation

@adboio

@adboio adboio commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Problem

diffs package is a bit out of date; want to upgrade before testing a pre-release version

Changes

bump pierre/diffs version

How did you test this?

manually

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

adboio commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions

github-actions Bot commented Jun 13, 2026

Copy link
Copy Markdown

React Doctor could not complete this scan.

No React dependency found in /tmp/react-doctor-baseline-r7MarX/package.json. Add "react" to dependencies (or peerDependencies) and re-run.

Reviewed by React Doctor for commit c8bf992.

@adboio adboio requested a review from a team June 13, 2026 00:38
@adboio adboio added the Stamphog This will request an autostamp by stamphog on small changes label Jun 13, 2026 — with Graphite App
@adboio adboio marked this pull request as ready for review June 13, 2026 00:38

@stamphog stamphog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates denied this PR because it modifies dependency/toolchain files (package.json files and pnpm-lock.yaml), which require human review. Additionally, the rename of DIFF_METRICS.fileGap to spacing is a behavioral API contract change that needs a reviewer to confirm no callers are broken.

@stamphog stamphog Bot removed the Stamphog This will request an autostamp by stamphog on small changes label Jun 13, 2026
@greptile-apps

greptile-apps Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
packages/core/src/code-review/diffAnnotations.test.ts:83-100
**Prefer parameterised tests for boolean toggle behaviour**

The two new `buildCommentMergedOptions` cases only differ on the `hasOpenComment` flag and the expected value of `enableLineSelection`/`enableGutterUtility`. Expressing them as a single `it.each` table (e.g. `[false, true, true], [true, false, false]`) would make it easier to see the invariant and add future cases without duplicating the setup.

Reviews (1): Last reviewed commit: "chore(code): bump diffs package version" | Re-trigger Greptile

Comment on lines 83 to +100
});

describe("buildCommentMergedOptions", () => {
it("routes both selection end and gutter utility clicks to the handler", () => {
const handler = () => {};
const merged = buildCommentMergedOptions(undefined, false, handler);
expect(merged.enableLineSelection).toBe(true);
expect(merged.enableGutterUtility).toBe(true);
expect(merged.onLineSelectionEnd).toBe(handler);
expect(merged.onGutterUtilityClick).toBe(handler);
});

it("disables selection and gutter utility while a comment is open", () => {
const merged = buildCommentMergedOptions(undefined, true, () => {});
expect(merged.enableLineSelection).toBe(false);
expect(merged.enableGutterUtility).toBe(false);
});
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Prefer parameterised tests for boolean toggle behaviour

The two new buildCommentMergedOptions cases only differ on the hasOpenComment flag and the expected value of enableLineSelection/enableGutterUtility. Expressing them as a single it.each table (e.g. [false, true, true], [true, false, false]) would make it easier to see the invariant and add future cases without duplicating the setup.

Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/core/src/code-review/diffAnnotations.test.ts
Line: 83-100

Comment:
**Prefer parameterised tests for boolean toggle behaviour**

The two new `buildCommentMergedOptions` cases only differ on the `hasOpenComment` flag and the expected value of `enableLineSelection`/`enableGutterUtility`. Expressing them as a single `it.each` table (e.g. `[false, true, true], [true, false, false]`) would make it easier to see the invariant and add future cases without duplicating the setup.

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@adboio adboio force-pushed the 06-12-chore_code_bump_diffs_package_version branch from 550e7b7 to c8bf992 Compare June 13, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant